package com.nisco.dms.repository.mybatis;

import java.util.List;
import java.util.Map;

import com.nisco.dms.entity.Department;

@MyBatisRepository
public interface DeptMyBatisDao{
	List<Department> getAll();
	
	/**
	 * 实现分页
	 * @param pageNow
	 * @param pageSize
	 * @return
	 */
	List<Department> getAllByPage(Map<String, Object> parameters);
	
	Department get(String id);

	List<Department> search(Map<String, Object> parameters);
	
	List<Department> searchByPage(Map<String, Object> parameters);

	void save(Department dept);

	void delete(String id);
	
	void update (Department dept);
	
}
